require('lualine').setup {
  options = {
    theme = 'auto',
    icons_enabled = false,
    component_separators = '',
    section_separators = '',
  },
  sections = {
    lualine_a = { 'mode' },
    lualine_b = {
      {
        'branch',
        fmt = function(str)
          return string.upper(str:sub(1, 2))
        end,
      },

      'diff',
      'diagnostics',
    },
    lualine_c = {
      { 'filename', path = 3 },
    },
    lualine_x = {},
    lualine_y = {
      { 'encoding', fmt = string.upper },
      {
        'fileformat',
        fmt = string.upper,
      },
    },
    lualine_z = { '%L:%l:%c', '%p%%', 'filetype' },
  },
}
